<template>
  <div id="app">
    <router-view>
			<slot name="header"></slot>
			<slot></slot>
			<slot name="nav"></slot>
    </router-view>
  </div>
</template>


<style lang="scss">
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-size: 100%;
  height: 100%;
  overflow: hidden;
}
body {
  height: 100%;
  background: #f3f3f3;
  overflow: hidden;
}
ul {
  list-style: none;
}
#app {
  font-family: "Avenir", Helvetica, Arial, sans-serif;
  color: #2c3e50;
  height: 100%;
  overflow: hidden;
  position: relative;
}
.ui_border_t:before {
  position: absolute;
  display: block;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  content: "";
  transform-origin: top;
  -webkit-transform-origin: top;
  -webkit-transform: scaleY(0.4);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: scaleY(0.4);
  background-color: #c8c7cc;
  z-index: 1;
}
.ui_border_b:after {
  position: absolute;
  display: block;
  bottom: 0;
  right: 0;
  left: 0;
  height: 1px;
  content: "";
  transform-origin: bottom;
  -webkit-transform-origin: bottom;
  -webkit-transform: scaleY(0.4);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: scaleY(0.4);
  background-color: #c8c7cc;
  z-index: 1;
}
.ui_border_l:before {
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  content: "";
  transform-origin: left;
  -webkit-transform-origin: left;
  -webkit-transform: scaleX(0.4);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: scaleX(0.4);
  background-color: #c8c7cc;
  z-index: 1;
}
.container {
  height: 100%;
  padding-bottom: 3.5rem;
  overflow: hidden;
  .content {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  &.header {
    padding-top: 3rem;
  }
  &.full {
    padding-bottom: 0;
  }
  &.white {
    background: #fff;
  }
}
.has-fix-bar {
  padding-bottom: 3rem;
}
::-webkit-scrollbar {
  display: none;
}
@media screen and (min-width: 640px) {
  .ui_border_t:before,
  .ui_border_l:before,
  .ui_border_b:before {
    -webkit-transform: scaleY(1);
    transform: scaleY(1);
  }
}
.red{
  color: #ff4e4e;
}
</style>
